class SPStream {
  String streamId;
  String hubName;
  String title;
  String publishKey;
  String publishSecurity;
  String publishRtmpHost;

  SPStream({
    this.streamId,
    this.hubName, 
    this.title, 
    this.publishKey, 
    this.publishSecurity, 
    this.publishRtmpHost
  });

  void fromJson(Map<String,dynamic> json) {
    streamId = json["streamId"];
    hubName = json["hubName"];
    title = json["title"];
    publishKey = json["publishKey"];
    publishSecurity = json["publishSecurity"];
    publishRtmpHost = json["publishRtmpHost"];
  }

  Map<String,dynamic> toJson() {
    return {
      "streamId": streamId,
      "hubName": hubName,
      "title": title,
      "publishKey": publishKey,
      "publishSecurity": publishSecurity,
      "publishRtmpHost": publishRtmpHost
    };
  }
  

  String getStreamId() {
      return this.streamId;
    }

  String getHubName() {
      return this.hubName;
    }

  String getTitle() {
      return this.title;
    }

  String getPublishKey() {
      return this.publishKey;
    }

  String getPublishSecurity() {
      return this.publishSecurity;
    }

  String getPublishRtmpHost() {
    return this.publishRtmpHost;
  }
}
  